-
Notifications
You must be signed in to change notification settings - Fork 236
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Specify recoverWithNull when reading JSON files #9304
Conversation
Signed-off-by: Andy Grove <[email protected]>
build |
try { | ||
Table.readJSON(cudfSchema, jsonOpts, dataBuffer, 0, dataSize) | ||
} catch { | ||
case e: AssertionError if e.getMessage == "CudfColumns can't be null or empty" => |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Parsing exception messages is an anti-pattern. Would be nice to have a followup to get a more specific exception type to help distinguish this case.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I agree, probably would be better to do this for all Exceptions and AssertionErrors.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks. I filed rapidsai/cudf#14331
Closes #9326
Closes #9310
Depends on rapidsai/cudf#14279
This PR enables the new cuDF option
recoverWithNulls
(see rapidsai/cudf#12532) when reading from JSON files.